/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkg.entity;

import com.googlecode.objectify.Key;
import java.io.Serializable;

public abstract class ObjectifyEntity implements Serializable {

    public abstract Key<ObjectifyEntity> getPrimaryKey();

    public Long keyId(Key<Teacher> key) {
        if (key != null) {
            return key.getId();
        } else {
            return null;
        }
    }
}
